package com.chrudgames.juicedietrecipes;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class General extends Activity {
	
	 @Override
	 public boolean onCreateOptionsMenu(Menu menu){
		 MenuInflater inflater = getMenuInflater();
		 inflater.inflate(R.menu.options, menu);
		 return true;
	 }
	 
	 @Override
	 public boolean onOptionsItemSelected(MenuItem item){
		 switch (item.getItemId()){
		 
        case R.id.search:
       	 Intent i3 = new Intent(this, Search.class);
       	 	startActivity(i3);
       	 return true;
		 
		 case R.id.generald:
	    		Intent i = new Intent(this, General.class);
	          	startActivity(i);
			 return true;
			 
        case R.id.help:
        	Intent i2 = new Intent(this, Help.class);
           	startActivity(i2);
            return true;
            
			 default:
				 return super.onOptionsItemSelected(item);
		 }
	 }

	 
 
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.general);
	}
}
